]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Fix idle tracking condition
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 11 Mar 2013 21:29:41 +0000 (17:29 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 12 Mar 2013 15:58:51 +0000 (11:58 -0400)
The user is active if they have less than IDLETIME, not if
they have more than it.

This fixes an issue where notifications may never go away.

https://bugzilla.gnome.org/show_bug.cgi?id=695659

js/ui/messageTray.js

index 2c1f328ef7804f962bc1955dee9099a1391f2998..0b1b50253b4a2f0ee0247544537255752af1b282 100644 (file)
@@ -2442,7 +2442,7 @@ const MessageTray = new Lang.Class({
     _showNotification: function() {
         this._notification = this._notificationQueue.shift();
 
-        this._userActiveWhileNotificationShown = this.idleMonitor.get_idletime() > IDLE_TIME;
+        this._userActiveWhileNotificationShown = this.idleMonitor.get_idletime() <= IDLE_TIME;
         if (!this._userActiveWhileNotificationShown) {
             // If the user isn't active, set up a watch to let us know
             // when the user becomes active.